package com.jvtd.nettyim.im.client.console;

import com.jvtd.nettyim.im.protocol.request.LogoutRequestPacket;
import io.netty.channel.Channel;

import java.util.Scanner;

/**
 * @author Created by neal.zhang
 * @date 2020/6/1 - 11:54
 */
public class LogOutConsoleCommand implements ConsoleCommand{
    @Override
    public void exec(Scanner scanner, Channel channel) {
        System.err.println("登出指令.");
        LogoutRequestPacket logoutRequestPacket = new LogoutRequestPacket();
        channel.writeAndFlush(logoutRequestPacket);
    }
}
